<?php
$this->breadcrumbs=array(
	// Yii::t('base','Agent Companies')=>array('admin'),
	$model->name,
);

$this->menu=array(
	array('label'=>'List AgentCompany', 'url'=>array('index')),
	array('label'=>'Create AgentCompany', 'url'=>array('create')),
	array('label'=>'Update AgentCompany', 'url'=>array('update', 'id'=>$model->agent_id)),
	array('label'=>'Delete AgentCompany', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->agent_id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage AgentCompany', 'url'=>array('admin')),
);
?>

<h1><?php echo Yii::t('base','view Agent details')?>#<?php echo $model->name; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
	//	'agent_id',
		'agent_number',
	//	'user_id',
		array('name'=>Yii::t('base','Password'),'value'=>User::model()->find('user_id='.$model->user_id)->password),
		array('name'=>'agent_type','value'=>AgentCompany::model()->getagenttype($model->agent_type)),
		'name',
		'phone',
		'email',
		'credit',
		array( 'label'=>Yii::t('base','hetong'),'type'=>'raw', 'value'=>CHtml::link(CHtml::encode($model->hetong), "../assets/upload/".CHtml::encode($model->hetong))
),
	),
)); ?>
